package com.tnr.scgcxx.util;

import java.util.HashMap;
import java.util.Map;

import com.github.pagehelper.PageInfo;


public class PageUtil {

	public static Map<String, Object> layuiTableData(PageInfo<?> pageInfo) {
        Map<String, Object> map = new HashMap<String, Object>();
		map.put("code", 0);
		map.put("msg", "");
		map.put("count", pageInfo.getTotal());
		map.put("data", pageInfo.getList());
		map.put("pageInfo",pageInfo);
		return map;
	}
}
